<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
		<form  action="" method="get" class="form-inline definewidth m20">
			 <button type="button" class="btn btn-success"  onclick="addForum(0);" >添加主题</button>
	  	</form>
		<table class="table table-bordered table-hover definewidth m10">
			 <thead>
			    <tr>
			      	<th><strong>序号</strong></th>
					<th><strong>主题名称</strong></th>
					<th><strong>主题描述</strong></th>
					<th><strong>操作</strong></th>
			    </tr>
			   </thead>
			  <?php foreach($forum_list as $key=>$forum){?>
			  <tr id="row_<?php echo $forum['id'];?>">
				<td><?php echo $forum['id'];?></td>
				<td><?php echo $forum['name'];?></td>
				<td><?php echo $forum['description'];?></td>
				<td>
				<a href="javascript:;"  onclick="addForum(<?php echo $forum['id']; ?>);">编辑</a>
				<a href="javascript:;" onclick="removeForum(<?php echo $forum['id'];?>);">删除</a>
				</td>
			  </tr>
			  <?php }?>	
			  	<tr>
			  	<td colspan="12"  class="invbd_page"><?php echo $this->pagination->create_links();?></td>
			  	</tr>
		</table>
</div>
<div id="dialog" title="系统提示" style="display:none;">
<div id="msg" style="text-align:center;color:red">&nbsp;</div>
<div id="theme_upload_view"></div>
</div>

